package com.github.wxpay.sdk;

import java.io.InputStream;

/**
 * @author X
 * @version 1.0
 * @ClassName MyWXPayConfig
 * @description
 * @date 2020/11/10
 **/
public class MyWXPayConfig extends WXPayConfig {

    /***
     * 应用ID
     * @return
     */
    @Override
    String getAppID() {
        return "wx50b8f1d6623c060d";
    }

    /***
     * 商户号
     * @return
     */
    @Override
    String getMchID() {
        return "1431813202";
    }

    /***
     * 秘钥
     * @return
     */
    @Override
    String getKey() {
        return "wmdtfyndmsxyyndgllyndzyfxzrjrtzt";
    }

    @Override
    InputStream getCertStream() {
        return null;
    }

    @Override
    IWXPayDomain getWXPayDomain() {
        return new IWXPayDomain() {
            @Override
            public void report(String s, long l, Exception e) {
            }

            @Override
            public DomainInfo getDomain(WXPayConfig wxPayConfig) {
                return new DomainInfo("api.mch.weixin.qq.com",true);
            }
        };
    }
}
